<?php

use App\Winged\Auth\Consts\Permissions;
use \Illuminate\Support\Facades\Route;
use \Illuminate\Routing\Router ;

    $attrbutes = [
        'prefix'        => \Encore\Admin\Facades\Admin::url($this->modulePrefix),
        'namespace'     => 'App\Winged\\' . $this->moduleName . '\Controllers',
    ];
    $prefix = 'permission:check,';
    $middleware = [
        'basic' => ['web','admin'],
        'check' => ['web','admin',$prefix . Permissions::EVALUATION_APPROVE],
    ];
    /* 服务组合列表 */
    $attrbutes['middleware'] = $middleware ['check'];
    Route::group($attrbutes ,function(Router $router){
        $router->get('/index','ConsultController@index');
    });

    /* 服务组合扫描 */
    $attrbutes['middleware'] = $middleware ['check'];
    Route::group($attrbutes ,function(Router $router){
    });

    /* 患者列表 */
    $attrbutes['middleware'] = $middleware ['check'];
    Route::group($attrbutes ,function(Router $router){
    });
    unset($attrbutes);
